#ifndef MTHREAD_H
#define MTHREAD_H

#include <QThread>
#include "uniontecsystemdll_global.h"
#include "Interface/PluginInterface/tecplugininterface.h"
#include "Interface/PluginInterface/kukateplugininterface.h"

class BackTcpThread : public QThread{
    Q_OBJECT
public:
    ENUM_ThreadStatus ThreadStatus;
    ENUM_PluginStatus PluginStatus;
    ENUM_PluginStatus KUKAPluginStatus;
    ThreadLoopTime mThreadLoopTime;
private:
    bool PluginLogOut;
    tecPluginInterface* ptecPluginInstance;
    kukatecPluginInterface* pkukatecPluginInstance;
public:
    BackTcpThread ();
    ~BackTcpThread();
    short  PluginInstanceConnect(tecPluginInterface* p);
    short  KUKAPluginInstanceConnect(kukatecPluginInterface* p);
    short  PluginStatusTransitions(ENUM_PluginStatus Status);
    double GetThreadLoopTime();
protected:
    void run();
};

#endif // MTHREAD_H
